package com.example.demo.controller;

import com.example.demo.entity.User;
import com.example.demo.service.Introduce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * Created by 人生若只如初见（Jeckie） on 2021/10/25 21:59
 */
@RestController
@RequestMapping("admin/")
public class Controller {
    @Autowired
    Introduce introduce;
    @GetMapping({"info/{id}"})
    List<User> userList(@PathVariable Long id){
        return introduce.selectIntro(id);
    }
}

